package com.evil.application.pojo.dto.mq;

import com.evil.common.application.dto.mq.MQReqDTO;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 刷新搜索引擎订单 队列 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class RefreshESOrderMQReqDTO implements MQReqDTO {

    @NotNull(message = "订单不能为空")
    private Long orderId;

    public RefreshESOrderMQReqDTO() {
    }

    public RefreshESOrderMQReqDTO(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 企业id
     *
     * @return Long
     */
    @Override
    public Long getEnterpriseId() {
        return null;
    }
}
